package edu.ucla.cs.typecast.ping;

public class PingUtil {
	public static int rand() {
		return (int) (Math.random() * Integer.MAX_VALUE);
	}

	public static int randPort() {
		return (int) (Math.random() * 60000) + 1024;
	}

	public static void sleep(long time) {
		try {
			Thread.sleep(time);
		} catch (InterruptedException e) {
			// Ignore
		}
	}
}
